class CommunitySeletionResultEntity {
  String code;
  String name;
  String id;
  bool check = false;
  List<CommunitySeletionResultEntity> list;
  CommunitySeletionResultEntity({this.name, this.id, this.list});

  CommunitySeletionResultEntity.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    id = json['id'];
    if (json['list'] != null) {
      list = new List<CommunitySeletionResultEntity>();
      json['list'].forEach((v) {
        list.add(new CommunitySeletionResultEntity.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['id'] = this.id;
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
